﻿@using DocProcessingWorkflow.Models.JobsAdmin
@model DocProcessingWorkflow.Models.JobsAdmin.JobsAdminViewModel
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "__AjaxAntiForgeryForm", onsubmit = "return false;" }))
{
  @Html.AntiForgeryToken()

  <div class="row">
    <div class="col-md-12">
      <h2>JOBS ADMIN
        <span class ="nav pull-right">
          @Html.ActionLink("Mail Sort Settings", "MailSortSettings")
        </span>
      </h2>
    </div>
  </div>
  <div id="Message">
    @TempData["message"]
  </div>
  <div class="row">
    <div class="col-md-12">
      <div class="form-group">
        @Html.DropDownListFor(x => x.SelectedManCo, new SelectList(Model.ManCos, "Code", "Description"), "Choose Company", new { @class = "form-control" })
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-md-12">
      <div class="form-group">
        <select class="form-control" id="SelectedDocType" name="SelectedDocType">
          <option>Choose Document</option>
        </select>
      </div>
    </div>
  </div>
  <div class="row">
    <div id="JobList" class="col-md-12">
      
    </div>
  </div>
  
  <div id="stockAssignmentWindow" class="modal fade">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title"></h4>
        </div>
        <div class="modal-body">
          @Html.Partial("AssignmentStockAjax", new StockAssignmentViewModel())
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>

  <div id="stockCreationWindow" class="modal fade">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title"></h4>
        </div>
        <div class="modal-body">
          
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>

  <div id="mediaDefinitionAuditWindow" class="modal fade">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title"></h4>
        </div>
        <div class="modal-body">
          @Html.Partial("GetMediaDefinitionAuditsAjax", new MediaDefinitionAuditsViewModel())
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>

  <div id="mailSortSettingSelector" class="hide">
    <select>
      <option value="0">No Selection</option>
      @foreach (var item in Model.MailSortSettings)
      {
        <option value="@item.MailsortSettingID">@item.NexdoxMailsortService</option>
      }
    </select>
  </div>

  @section scripts
  {
      <script src="@Url.Content("~/Scripts/JobsAdmin/jobsAdmin.js")"></script>
  }
}